import request from "@/utils/request.js";

// 获取轮播图数据

export function getBannerData() {
  return request({
    url: "/admin/banner/list",
    method: "GET",
  });
}

// 新增一个轮播图
export function addBanner(params) {
  return request({
    url: "/admin/banner/add",
    method: "POST",
    data: params,
  });
}

// 删除一个轮播图

export function delBanner(bannerid) {
  return request({
    url: "/admin/banner/delete",
    method: "GET",
    params: {
      bannerid,
    },
  });
}
